import request from '@/utils/request'

export function get() {
  return request({
    url: `/portal/alarm`,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/portal/alarm',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/portal/alarm',
    method: 'put',
    data
  })
}

export function handClose(params) {
  return request({
    url: '/portal/alarm/close',
    method: 'get',
    params
  })
}
